package com.jia.thumps.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * (Blog)实体类
 *
 * @author makejava
 * @since 2024-10-09 00:11:07
 */
@Getter
@Setter
public class Blog implements Serializable {

    private static final long serialVersionUID = -23972288848790347L;
    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 商户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long shopId;
    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 标题
     */
    private String title;
    /**
     * 探店的照片，最多9张，多张以","隔开
     */
    private String images;
    /**
     * 探店的文字描述
     */
    private String content;
    /**
     * 点赞数量
     */
    private Integer liked;
    /**
     * 评论数量
     */
    private Integer comments;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否点赞
     */
    @TableField(exist = false)
    private boolean isLike;

}

